<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%=request.getContextPath()%>/css/Style.css"
			type="text/css" rel="stylesheet">
		<link href="<%=request.getContextPath()%>/css/admin.css"
			type="text/css" rel="stylesheet">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/img.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.3.2.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/select.js"></script>
		<script type="text/javascript">
			//删除
function delDataByNid(nid) {
	var flag = false;
	var s = "";
	for (i = 0; i < document.getElementsByName("sel").length; i++) {
		if (document.getElementsByName("sel")[i].checked) {
			s += document.getElementsByName("sel")[i].value + ",";
			flag = true;
		}
	}
	if (flag == false) {
		alert("\u81f3\u5c11\u9009\u62e9\u4e00\u6761\u8bb0\u5f55!");
		return false;
	}
	if (confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")) {
		window.self.location = "delAboutObjs.htm?ids="+s+"&nid="+nid;
	}
}

//跳到添加页
function addData(url) {
     window.self.location = url;
     //window.showModalDialog(url,"newwin","dialogHeight: 500px; dialogWidth: 700px; dialogTop: 100px; dialogLeft: 255px; edge: Raised;");

}


//跳转到修改页面
function updatePage() {
	var count = 0;
	for (i = 0; i < document.getElementsByName("sel").length; i++) {
		if(document.getElementsByName("sel")[i].checked) {
			count++;
		}
	}
	if(count > 1 || count <1) {
		alert("请选择一条记录");
		return false;
	}
	var id;
	for (i = 0; i < document.getElementsByName("sel").length; i++) {
		if (document.getElementsByName("sel")[i].checked) {
			id = document.getElementsByName("sel")[i].value;
			break;
		}
	}
	var url = "<%=request.getContextPath()%>/admin/toUpdateAboutObj.htm?id="+id;
	window.self.location = url;
	//window.showModalDialog(url,"new","dialogHeight: 500px; dialogWidth: 700px; dialogTop: 100px; dialogLeft: 255px; edge: Raised;");
}

		</script>


		<title>在线客服-修改</title>
	</head>
	<body>
		<form action="<%=request.getContextPath()%>/admin/updateAboutObj.htm"
			method="post" id="n_form">
			<table cellspacing="0" cellpadding="0" border="0" align="center"
				width="800">
				<tbody>
					<tr>
						
						<table width="100%" cellspacing="0" cellpadding="0"
							bordercolor="#003366" border="1" class="Table1" align="left">
							<tbody>
								<tr height="30px">
									
									<td colspan="1" class="thead">
										当前位置:
									在线客服QQ
										&gt;修改
										<br><br>
								</tr>
								<tr style="font-weight: bold; background: #EEEEEE;">
									<td height="25" align="center" >
										<font>客服QQ号&nbsp;</font>
										<input type="text" size="100" name="pub.title" id="pub.title" value="${pub.title }">													
									</td>
								</tr>
								<tr style="font-weight: bold; background: #EEEEEE;">
									<td height="25" align="center" >
										<font>客服昵称&nbsp;</font>
										<input type="text" size="100" name="pub.name" id="pub.name" value="${pub.name }">													
										<input type="hidden" name="nid" value="${pub.nid }">
											<input type="hidden" name="pub.id" value="${pub.id }">
									</td>
								</tr>
									<tr style="font-weight: bold; background:#EEEEEE;">
									<td height="25" align="right">
										<input type="submit" value="提交">
										<input type="button" onclick="javascript:history.go(-1)" value="返回" />
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
								</tr>
							</tbody>
						</table>

					</tr>
					<tr>
						<td style="height: 10px;" colspan="4"></td>
					</tr>

					<tr>
					</tr>
				</tbody>
			</table>
			</form>
	</body>
</html>